import instance from '@/utils/request'

// 商品搜索请求
export const getGoodsSearch = (obj) => {
  const { categoryId, goodsName, page } = obj
  return instance({
    url: '/goods/list',
    params: {
      categoryId,
      goodsName,
      page
    }
  })
}

// 分类页商品请求
export const getCategoryGoods = () => {
  return instance({
    url: '/category/list'
  })
}
